package com.whlilong.jxc.action;

import org.eclipse.jface.action.Action;
import org.eclipse.ui.IViewPart;
import org.eclipse.ui.IWorkbenchWindow;

import com.whlilong.jxc.constants.IAppConstants;
import com.whlilong.jxc.view.ClientManagerView;

public class SaleAction extends Action {
	private IWorkbenchWindow window;

	private String id = "com.whlilong.jxc.sale";

	public SaleAction(IWorkbenchWindow window) {
		this.window = window;
		setId("sale");
		setActionDefinitionId(id);
	}
	public void run(){
		ClientManagerView vp = (ClientManagerView)window.getActivePage().findView(
				IAppConstants.clientManagerView_id);
		vp.sale();
	}

}
